<div class="job_user_list content_works pos" id="workexp">
    <div class="h_title">
        <h3>任务评分</h3>
    </div>
    <!-- 点击编辑按钮 -->
    <form method="post" class="form-horizontal checkoutform" action="{:U('Score/insert')}">
        <volist name="score" id="vo">
    		<div class="click_edit_content pbw">
                <div class="job_list_jl">
                    <div class="job_jl_title">
                        <i class="border-radius"></i>
                        <p>{$vo['integralnumber']}</p>
                        <p class="text-primary">
                        	积分：<span id="s_{$vo['task_id']}">{$vo['integralnumber']}</span>￥
                            <?php if($vo['mission_id']!=0&&$vo['member_id']!=session(C('USER_AUTH_KEY'))){ ?>
                                <input type="hidden" name="score[{$vo['task_id']}]" value="{$vo['integralnumber']}" />
                                <input type="hidden" name="member[{$vo['task_id']}]" value="{$vo['member_id']}" />
                            <?php } ?>
                        </p>
                        <p class="text-muted">{$vo['remark']}</p>
                        <?php if($vo['mission_id']!=0&&$vo['member_id']!=session(C('USER_AUTH_KEY'))){ ?>
                            <div class="y">
                                <a href="javascript:;" class="actionEdit" onClick="editScore('s_{$vo['task_id']}')">
                                    <span>编辑</span>
                                    <i class="icon-edit-sign"></i>
                                </a>
                                <assign name="temp['num']" value="$vo['integralnumber']"/>
                                <assign name="temp['id']" value="$vo['task_id']"/>
                                <a href="javascript:;" class="actionEdit" onClick="_openWindow('{:U('Event/add',$temp)}',500, '创建积分事件', '提交',null,'')">
                                    <span>添加 </span>
                                    <i class="icon-edit-sign"></i>
                                </a>
                            </div>
                        <?php } ?>	
                    </div>
                </div>
    		</div>
        </volist>
        <input type="hidden" name="task_id" value="{$taskid}"/>
    </form>
</div>
<script>
	function editScore(score){
		var s=$("#"+score);
		s.html('<input type="text" value="'+s.text()+'" />');
		s.parents(".job_jl_title").find(".actionEdit").attr('onClick','saveScore(\''+score+'\')').text('完成');
	}
	function saveScore(score){
		var s=$("#"+score);
		var num=s.find("input").val();
		s.text(num).next("input").val(num);
		s.parents(".job_jl_title").find(".actionEdit").attr('onClick','editScore(\''+score+'\')').text('编辑');
	}
</script>
<style>
.y {
    float: right !important;
}
.job_jl_title input{
	width:100px;	
}
.job_jl_title p {
    font-size: 16px;
    float: left;
    line-height: 24px;
    margin-right: 24px;
}
.job_jl_title .y a span {
    margin-right: 5px;
}
p {
    word-wrap: break-word;
    word-break: break-all;
}
.job_jl_title i.border-radius {
    width: 8px;
    height: 8px;
    float: left;
    margin-top: 9px;
    border: 2px solid #ccc;
    margin-left: -20px;
    border-radius: 50%;
}
.job_jl_title {
    height: 30px;
    padding: 5px 10px 5px 32px;
    margin-bottom: 5px;
}
job_jl_title input{
	width:30px;	
}
.pbw {
    padding-bottom: 16px !important;
	border-bottom:1px solid #eee;
	overflow:hidden;
}
.edit_click i {
    font-size: 16px;
    margin-left: 5px;
}
.edit_click span {
    font-size: 14px;
    color: #bdc3c7;
}
.edit_click {
    height: 30px;
    line-height: 30px;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 15px;
}
.edit_click {
    height: 30px;
    line-height: 30px;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 15px;
}
.job_user_list .h_title {
    height: 50px;
    font-size: 16px;
    border-bottom: 1px solid #e4e9ed;
    margin-bottom: 6px;
	overflow:hidden;
}
.job_user_list .h_title h3 {
    height: 50px;
    float: left;
    font-weight: normal;
    line-height: 50px;
    font-size: 20px;
}
.pos {
    position: relative;
}

.job_user_list {
    max-width: 800px;
    margin: 0 auto;
}
.cl {
    zoom: 1;
}
</style>